package com.gnerv.sylvanas.business.manage.model.dto;

import com.gnerv.sylvanas.business.manage.model.bo.RouteBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * 路由表
 */
@Data
public class RouteCreateDTO {

    private String parentUkId;
    private String name;
    private String type;
    private String description;
    private String path;
    private String fullPath;
    private String component;
    private String meta;
    private String status;
    private Integer sort;

    public RouteBO toRouteBO() {
        RouteBO routeBO = new RouteBO();
        BeanUtils.copyProperties(this, routeBO);
        return routeBO;
    }
}